import http from '../utils/request.js'

const memberApi = {
  // 获取用户信息
  getUserInfo() {
    return http.get('/member/user/info')
  },
  // 更新用户信息
  updateUserInfo(data, isFormData = false) {
    return http.post('/user/update', data, { isFormData })
  },
  // 获取会员钱包地址
  getUserWallet() {
    return http.get('/member/getUserWallet')
  }
}

export default memberApi